
# 如何缓存函数中的变量
def myfunc():
    number = 10
    return number

mynum = myfunc()
print(mynum)  # 10
print(mynum+1) # 10+1
print(mynum+1) # 10+1
